package com.buba.pojo.user;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.buba.utils.dateUtils;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 就诊人表
 * </p>
 *
 * @author testjava
 * @since 2022-06-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ThePatient对象", description="就诊人表")
public class ThePatient implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "姓名")
    private String name;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "生日")
    private Date birthday;

    @ApiModelProperty(value = "姓别")
    private String sex;


    @ApiModelProperty(value = "与本人关系（本人 子女 夫妻 父母 朋友）")
    private String relation;

    @ApiModelProperty(value = "证件类型")
    private String documentType;

    @ApiModelProperty(value = "证件号码")
    private String number;

    @ApiModelProperty(value = "就诊卡号")
    private String hospitalNumber;


    @ApiModelProperty(value = "手机号码")
    private String phone;

    @ApiModelProperty(value = "就诊人地址")
    private String address;

    @ApiModelProperty(value = "是否为默认就诊人（是 否）")
    private String defaultPerson;

    @ApiModelProperty(value = "是否住院（是否）")
    private String hospitalization;

    @ApiModelProperty(value = "住院天数")
    @TableField("Days")
    private Integer Days;

    @ApiModelProperty(value = "创建时间")
    private Date creationTime;

    @ApiModelProperty(value = "修改时间")
    private Date modificationTime;


}
